package com.weiqiao.mall.repository;

import com.weiqiao.base.dao.IBaseMongoDao;
import org.bson.Document;
import org.bson.conversions.Bson;

import java.util.List;

/**
 * @Description:
 * @Author: 陈忠强
 * @date: 2018/6/14.
 */
public interface IGiftRepository extends IBaseMongoDao {

    boolean saveGift(String json);

    int getOrderLogCount(int company_id, Bson filter);

    List<String> selectList(Bson filter, Bson filterSort, int skip, int limit);

    String findGiftCardById(Bson bson);

    boolean updateGift(Bson filter, Document doc, boolean bool);

    boolean deleteById(Bson filter, Document doc, boolean bool);

    List<String> getGiftCardList(Bson filter);
}
